// 导入封装好的http 模块
import { Http } from '../http'

export class TodoApi {

  // 获取房屋查询条件
  static getHousesCondition(params) {
    // console.log(params)
    return new Http().request({
      url: '/houses/condition',
      method: 'get',
      params
    })
  }

  // 根据条件查询房屋
  static getHouses(params) {
    // console.log(params)
    return new Http().request({
      url: '/houses',
      method: 'get',
      params
    })
  }

}